exports.data = {
  json: {
    kind: "Snippet",
    body: ['"t-badge": "tdesign-miniprogram/badge/badge"'],
    detail: "badge 按钮",
    documentation: `在app.json或index.json中引入组件`,
  },
  wxml: {
    kind: "Snippet",
    body: ["<t-badge${1}>${2:默认按钮}</t-badge>"],
    detail: "Button 按钮",
    documentation: `按钮用于触发一个操作，如提交表单。`,
    attrs: [
      {
        kind: "Field",
        body: ["color="],
        detail: "color",
        documentation: "颜色",
        vals: null,
      },
      {
        kind: "Field",
        body: ["content="],
        detail: "content",
        documentation: "徽标内容",
        vals: null,
      },
      {
        kind: "Field",
        body: ["count="],
        detail: "count",
        documentation:
          "徽标右上角内容。可以是数字，也可以是文字。如：new/3/99+。特殊：值为空表示使用插槽渲染",
        vals: null,
      },
      {
        kind: "Field",
        body: ["max-count="],
        detail: "max-count",
        documentation:
          "徽标右上角内容。可以是数字，也可以是文字。如：new/3/99+。特殊：值为空表示使用插槽渲染",
        vals: null,
      },
      {
        kind: "Field",
        body: ["dot"],
        detail: "dot",
        documentation: "是否为红点",
        vals: {
          kind: "Value",
          body: ["true", "false"],
          detail: "",
          documentation: "",
        },
      },
      {
        kind: "Field",
        body: ["shape"],
        detail: "shape",
        documentation: "形状",
        vals: {
          kind: "Value",
          body: ["circle", "square", "bubble", "ribbon"],
          detail: "",
          documentation: "",
        },
      },
      {
        kind: "Field",
        body: ["size"],
        detail: "size",
        documentation: "形状",
        vals: {
          kind: "Value",
          body: ["medium", "medium"],
          detail: "",
          documentation: "",
        },
      },
      {
        kind: "Field",
        body: ["t-class="],
        detail: "t-class",
        documentation: "根节点样式类",
        vals: null,
      },
      {
        kind: "Field",
        body: ["t-class-content="],
        detail: "t-class-content",
        documentation: "内容样式类",
        vals: null,
      },
      {
        kind: "Field",
        body: ["t-class-count="],
        detail: "t-class-count",
        documentation: "计数样式类",
        vals: null,
      },
    ],
  },
};
